using Microsoft.EntityFrameworkCore;
using MVCDemoSoft1.Models;

namespace MVCDemoSoft1.Db
{
    public class DemoSoft1Db : DbContext
    {
        private readonly string _conString="server=.;database=DemoSoft1Db;uid=sa;pwd=123456;";

        protected override void OnConfiguring(DbContextOptionsBuilder builder)
        {
            builder.UseSqlServer(_conString);
        }


        public DbSet<Person> Person { get; set; }
        public DbSet<BankAccount> BankAccount { get; set; }
    }
}